package week6;

public class Q4 {
    private String name;
    private int gender;
    private String age;
    private String phone;


    public void setName(String name) {
        this.name = name;

    }
    public void setGender(int gender){
        this.gender=gender;
    }
    public  void setAge(String age){
        this.age=age;
    }
    public void  setPhone(String phone){
        this.phone=phone;
    }
    public String getName(){
        return name;
    }
    public int getGender(){
        return  gender;
    }
    public  String getAge(){
        return age;
    }
    public  String getPhone(){
        return phone;
    }
    public String getInfo(){
        return "Q4{" +
                "name =' " + name + "/"+
                ", age=" + gender +
                ", school='" + age + "/" +
                ", major='" +phone + "/"+
                '}';
    }
}
